package com.baidu.day03;

import java.io.File;

public class Demo04 {
    public static void main(String[] args) {
        File file = new File("C:\\Users\\DAJU\\Desktop\\新建文件夹 (2)\\XXX.txt");
        String parent = file.getParent();
        System.out.println(parent);


    }


}
